﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Warehouse.Services.Repository;
using WCS.Entities;

namespace WCS.Services
{
    public class MaterialClassService:Repository<MaterialClass>
    {
        private Repository<MaterialClass> _mater;
        public MaterialClassService(Repository<MaterialClass> mater)
        {
            _mater = mater;
        }
        
        //添加物料类别
        public async Task<MaterialClass> AddMateril(MaterialClass model)
        {
            if(model!=null)
            {
                await _mater.AddAsync(model);
            }
            return model;
        }

        

    }
}
